package com.game.framework.dao.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Data
@Document("RoleEntity")
@TableName( value ="tf_role" )
public class RoleEntity extends BaseEntity<Long> {

    @TableField(value = "user_id")
    private long userId;

    @TableField(value = "role_id")
    private long roleId;

    @TableField(value = "nick_name")
    private String nickName;

    @TableField(value = "head_img")
    private String headImg;

    @TableField(value = "level")
    private int level = 1;

    @TableField(value = "gold")
    private long gold = 0L;
    //积分
    @TableField(value = "score")
    private long score = 0L;

    //门票MAP字符串 “TYPE,NUM;TYPE,NUM”
    @TableField(value = "ticket")
    private String ticket = "";

    //鱼杆MAP字符串“TYPE,NUM;TYPE,NUM”
    @TableField(value = "pole")
    private String pole = "";

    //鱼饵MAP字符串“TYPE,NUM;TYPE,NUM”
    @TableField(value = "bait")
    private String bait = "";

    //鱼获MAP字符串“TYPE,NUM;TYPE,NUM”
    @TableField(value = "fish")
    private String fish = "";

    //福龙MAP字符串“TYPE,NUM;TYPE,NUM”
    @TableField(value = "dragon")
    private String dragon = "";

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "last_login_time")
    private Date lastLoginTime;

    @TableField(value = "last_logout_time")
    private Date lastLogoutTime;

    @TableField(value = "new_create")
    private boolean newCreate;
}

